import createAxios from '../utils/axios'
//获取首页分类
export const getclassify = () => {
    return createAxios({
        url: `/shop/classify/getAllClassifyWithLevel`,
        method: 'GET',
    }, 'API1');
}
//获取首页分类上
export const getHomeConfig = () => {
    return createAxios({
        url: `/shop/classify/getHomeConfig`,
        method: 'GET',
    }, 'API1');
}
//获取首页分类下
export const getHomeCategory = () => {
    return createAxios({
        url: `/shop/classify/getHomeCategory`,
        method: 'GET',
    }, 'API1');
}
export const getSonclassify = (id: string, limit: number) => {
    return createAxios({
        url: `/shop/classify/getSonclassify?classify_id=${id}&limit=${limit}`,
        method: 'GET',
    }, 'API1');
}
